const fs = require("fs");
const path = require("path");
const filePath = path.join(__dirname, "test.txt");

//同步读取文件
let fileContent = fs.readFileSync(filePath);

console.log(fileContent);
console.log(fileContent.toString());
